import request from "../../utils/request.js";

//返回菜品列表
// params = {pageNum: 1, pageSize: 10,dishes:null}
// dishes = {dishID,dishName,restID,restName,picUrl,salesPrice,cuisine}
export function queryAllDishes(query){
    return request({
        url: '/dishes-user/query',
        method: 'get',
        params: query,
        isToken: true
    })
}

// 单个，参数菜品id
export function getDetailDishs(id) {
    return request({
        url: '/dishes-user/' + id,
        method: 'get',
        isToken: true
    })
}